package com.sch.hospital.domain;

import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 患者挂号记录对象 patientdoctor
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Patientdoctor
{

    /** 挂号记录ID，自增主键 */
    private Long id;

    /** 患者ID */
    private Long patientId;

    /** 患者姓名 */
    private String name;

    /** 医生ID */
    private Long docId;

    /** 联系电话 */
    private String telephone;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date day;

    /** 科室ID */
    private Long departId2;

    /** 备注信息 */
    private String info;

    /** 状态:0待就诊,1已就诊,2已取消 */
    private Long status;

    /** 预约时间段 */
    private String timeSlot;

    /** 诊断结果 */
    private String diagnosis;

    /** 处方 */
    private String prescription;

    /** 医嘱 */
    private String advice;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;

    public Patientdoctor() {
    }

    public Patientdoctor(Long id, Long patientId, String name, Long docId, String telephone, Date day, Long departId2, String info, Long status, String timeSlot, String diagnosis, String prescription, String advice, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.patientId = patientId;
        this.name = name;
        this.docId = docId;
        this.telephone = telephone;
        this.day = day;
        this.departId2 = departId2;
        this.info = info;
        this.status = status;
        this.timeSlot = timeSlot;
        this.diagnosis = diagnosis;
        this.prescription = prescription;
        this.advice = advice;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return patientId
     */
    public Long getPatientId() {
        return patientId;
    }

    /**
     * 设置
     * @param patientId
     */
    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return docId
     */
    public Long getDocId() {
        return docId;
    }

    /**
     * 设置
     * @param docId
     */
    public void setDocId(Long docId) {
        this.docId = docId;
    }

    /**
     * 获取
     * @return telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * 设置
     * @param telephone
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * 获取
     * @return day
     */
    public Date getDay() {
        return day;
    }

    /**
     * 设置
     * @param day
     */
    public void setDay(Date day) {
        this.day = day;
    }

    /**
     * 获取
     * @return departId2
     */
    public Long getDepartId2() {
        return departId2;
    }

    /**
     * 设置
     * @param departId2
     */
    public void setDepartId2(Long departId2) {
        this.departId2 = departId2;
    }

    /**
     * 获取
     * @return info
     */
    public String getInfo() {
        return info;
    }

    /**
     * 设置
     * @param info
     */
    public void setInfo(String info) {
        this.info = info;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    /**
     * 获取
     * @return timeSlot
     */
    public String getTimeSlot() {
        return timeSlot;
    }

    /**
     * 设置
     * @param timeSlot
     */
    public void setTimeSlot(String timeSlot) {
        this.timeSlot = timeSlot;
    }

    /**
     * 获取
     * @return diagnosis
     */
    public String getDiagnosis() {
        return diagnosis;
    }

    /**
     * 设置
     * @param diagnosis
     */
    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis;
    }

    /**
     * 获取
     * @return prescription
     */
    public String getPrescription() {
        return prescription;
    }

    /**
     * 设置
     * @param prescription
     */
    public void setPrescription(String prescription) {
        this.prescription = prescription;
    }

    /**
     * 获取
     * @return advice
     */
    public String getAdvice() {
        return advice;
    }

    /**
     * 设置
     * @param advice
     */
    public void setAdvice(String advice) {
        this.advice = advice;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Patientdoctor{id = " + id + ", patientId = " + patientId + ", name = " + name + ", docId = " + docId + ", telephone = " + telephone + ", day = " + day + ", departId2 = " + departId2 + ", info = " + info + ", status = " + status + ", timeSlot = " + timeSlot + ", diagnosis = " + diagnosis + ", prescription = " + prescription + ", advice = " + advice + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
